<template>
  <div>
    <el-row :gutter="20">
      <el-col :span="2" :offset="6">
        <el-select v-model="value" placeholder="搜索类别" >
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value">
          </el-option>
        </el-select>
      </el-col>
      <el-col :span="5"><el-input
        placeholder="请输入内容"
        v-model="input"
        clearable>
      </el-input></el-col>
      <el-col :span="1"><el-button type="primary" icon="el-icon-search">查询</el-button></el-col>
      <el-col :span="3"><Memberadd></Memberadd></el-col>
    </el-row>
    <el-row>
      <el-col :span="22" :offset="1"><TableMem></TableMem></el-col>
    </el-row>
  </div>
</template>

<script>
  import TableMem from './table_member'
  import Memberadd from './member_add'
  export default {
    name: "member",
    components:{
      TableMem,
      Memberadd
    },
    data(){
      return{
        options: [{
          value: '选项1',
          label: '姓名'
        }, {
          value: '选项2',
          label: '性别'
        }, {
          value: '选项3',
          label: '年龄'
        }, {
          value: '选项4',
          label: '手机号码'
        }, {
          value: '选项5',
          label: '会员等级'
        }],
        value: '',
        input: ''
      }
    }
  }
</script>

<style scoped>

</style>
